Update Settlement Account
PATCH /api/v1/tenants/{tenantId}/settlement-account
Description
Update the settlement account details for a tenant.
Path Parameters
| Name | Type | Description |
|---|---|---|
tenantId | string | The tenant ID (path) |
Request Body
- Content Type:
application/json
{
"userId": "string",
"bankName": "string",
"bankCode": "string",
"accountName": "string",
"accountNumber": "string",
"actionBy": "string",
"allowWithoutWallet": false
}
Response Code: 200 - OK
Description
Settlement account updated successfully.
Response Fields
| Field | Type | Description |
|---|---|---|
status | boolean | Indicates if the operation was successful |
statusCode | integer | Status code |
message | string | Response message |
data | object | Data related to the updated settlement account |
errors | array | List of error messages, if any |
Example
{
"status": true,
"statusCode": 0,
"message": "Settlement account updated successfully",
"data": {},
"errors": [
{
"message": "Some error occurred",
"descriptiveMessage": "Detailed error message"
}
]
}
Headers
| Content-Type | Value |
|---|---|
| apiKey | {{apiKey}} |
🔑 Authentication bearer
| Param | Value | Type |
|---|---|---|
| token | {{accessCode}} | string |
LANGUAGE
CURL REQUEST
curl --request PATCH \
--url /api/v1/tenants/{tenantId}/settlement-account \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!